package cn.codenest;

import cn.codenest.util.impl.RbmqServiceImpl;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) throws IOException, TimeoutException {
        RbmqServiceImpl rbmqService = new RbmqServiceImpl();
        //rbmqService.sendDefaultDirectMsg( "Hello World!" );
        rbmqService.sendDirectMsg( "Hello World!" );
        //rbmqService.sendTopicMsg("苹果");
        //rbmqService.sendFanoutMsg("苹果");
    }
}
